package com.woniuxy.web;

import com.woniuxy.pojo.Person;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
/*@ResponseBody + @Controller*/
public class XinWanJu {
    @RequestMapping(value = "/qwer",produces = "application/json;charset=UTF-8")
    public Person qweqqqq(@RequestBody Person person){
        System.out.println("我是post"+person);
        return person;
    }
    /*注意List传输格式为[1,2]*/
}
